package com.dong.vdbtc.validation;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * description
 *
 * @author Administrator 2021/09/07 19:49
 */
@Configuration
public class AppConfig {

    @Bean
    public UserValidator userValidator(){
        return new UserValidator();
    }

    @Bean
    public User user(){
        User user = new User();
        user.setName("as");
        user.setAge(-1);
        return user;
    }
}
